package good_src.Implementation;

import good_src.Interfaces.MethodRequest;

/**
 * 
 * @author Tangi Midy & Fabien Le Peih Method Request realization
 *         <p>
 *         Invoke update method on the displayers of the referenced stream
 *         </p>
 */
public class ConcreteMethodUpdate implements MethodRequest {

	private Canal canal;

	/**
	 * Constructior of the class
	 * 
	 * @param canal
	 *            The referenced stream
	 */
	public ConcreteMethodUpdate(Canal canal) {
		this.canal = canal;
	}

	/**
	 * 
	 * @see good_src.Interfaces.MethodRequest#call()
	 */
	@Override
	public Object call() {
		((ConcreteAfficheur) canal.getAfficheur()).update();
		return null;
	}

	/**
	 * 
	 * @see good_src.Interfaces.MethodRequest#guard()
	 */
	@Override
	public boolean guard() {
		return false;
	}

}
